import java.util.ArrayList;
import java.util.HashMap;

public class State extends Region{
	public String name;
	public HashMap <Integer,Case> cases; //case number, case object
	public ArrayList<Integer> caseNumbers;
	public ArrayList<String> counties;
	public HashMap <String,ArrayList<Integer>> countiesToCases;
	public State(String name, Integer year, boolean isState, Integer numberOfCases, HashMap<Integer, Case> cases, ArrayList<Integer> caseNumbers) {
		this.name = name;
		this.cases = cases;
		this.caseNumbers = caseNumbers;
		this.year = year;
		this.numberOfCases = numberOfCases;
		this.isState = isState;
		this.counties = new ArrayList<String>();
		countiesToCases = new HashMap<String,ArrayList<Integer>>();
	}
	public State(State copy){
		this.name = copy.name;
		this.cases = copy.cases;
		this.caseNumbers = copy.caseNumbers;
		this.year = copy.year;
		this.numberOfCases = copy.numberOfCases;
		this.isState = copy.isState;
		this.counties = new ArrayList<String>(copy.counties);
		countiesToCases = new HashMap<String,ArrayList<Integer>>(copy.countiesToCases);
	}
//	public Integer getID(){
//		return id;
//	}
	public void insertCounty(String county){
		if(!counties.contains(county)){
			counties.add(county);
		}
	}
	
	public String getName(){
		return name;
	}
}
